var Singleton = (function (){
    var instance;
    function createInstance() {
        var object = new Array();
        return object;
    }

    return {
        getInstance: function(){
            if (!instance) {
                instance = createInstance();
            }
            return instance;
        }
    };

})();

function page_obj() {
    this.setPageName("");
    this.setPageUrl("");
    this.setPageDescription("");
}

page_obj.prototype.setPageName = function(val)
{
    this.pagename = val;
};

page_obj.prototype.getPageName = function()
{
    return this.pagename;
};

page_obj.prototype.setPageDescription = function(val)
{
    this.pagedescription = val;
};

page_obj.prototype.getPageDescription = function()
{
    return this.pagedescription;
};

page_obj.prototype.setPageUrl = function (val)
{
    this.urlpath = val;
};

page_obj.prototype.addPage = function(val)
{
    var instance = Singleton.getInstance();
    instance[val.urlpath] = val;
};

page_obj.prototype.getPageList = function()
{
    var instance = Singleton.getInstance();
    return instance;
};

exports.page_obj = page_obj;

